# Makefile

RM = rm -f
CXX = g++
CXXFLAGS = -Wall -g -std=c++98
INCLUDE = 
LDFLAGS = -lboost_thread -lboost_system -pthread 
LDPATH = 

PROGS =	task_queue thread_test

.PHONY: all
all: $(PROGS)
	@echo "build OK!"

clean:
	@$(RM) $(PROGS) *.o
	@echo "clean OK!"

%.o:%.cpp
	$(CXX) -o $@ -c $< $(CXXFLAGS) $(INCLUDE)

task_queue: task_queue.o
	$(CXX) -o $@ $^ $(LDFLAGS) $(LDPATH)

thread_test: thread.o thread_test.o 
	$(CXX) -o $@ $^ $(LDFLAGS) $(LDPATH)

